﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using CodeStash.Common.DataAccess.Repository;
using CodeStash.Common.DataAccess.EntityFramework;

namespace CodeStash.IntegrationTests
{
    [TestFixture]
    public class VibilityTests
    {
        [Test]
        public void SimpleFetchTest()
        {
            Repository<Visibility> visibilityRepository = new Repository<Visibility>();
            using (var db = new CodeStashEntities("name=CodeStashEntities"))
            {
                visibilityRepository.EnrolInUnitOfWork(db);
                Assert.Greater(visibilityRepository.FindAll().ToList().Count, 0);
            }

        }

    }
}
